/*
Copyright [2023] [fuwen_soft]
*/
package vip.xiaonuo.modular.xylogy.param;
import java.time.LocalDateTime;
import vip.xiaonuo.core.pojo.base.param.BaseParam;
import lombok.Data;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.NotBlank;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.*;

/**
* 族谱书参数类
 *
 * @author yanwei
 * @date 2023-05-05 15:44:28
*/
@Data
@ApiModel("族谱书 查询条件")
public class XyLogyParam extends BaseParam {

    /**
     * 
     */
    @NotNull(message = "不能为空，请检查id参数", groups = {edit.class, delete.class, detail.class})
    @ApiModelProperty("")
    private String id;

    /**
     * 用户编号,创建人
     */
    @NotBlank(message = "用户编号,创建人不能为空，请检查userId参数", groups = {add.class, edit.class})
    private String userId;

    /**
     * 家谱封面
     */
//    @NotBlank(message = "家谱封面不能为空，请检查logyPic参数", groups = {add.class, edit.class})
    private String logyPic;

    /**
     * 家族姓氏
     */
    @NotBlank(message = "家族姓氏不能为空，请检查logyName参数", groups = {add.class, edit.class})
    private String logyName;

    /**
     * 姓氏
     */
    @NotBlank(message = "姓氏不能为空，请检查surname参数", groups = {add.class, edit.class})
    private String surname;

    /**
     * 始迁祖名
     */
    @NotBlank(message = "始迁祖名不能为空，请检查sourceName参数", groups = {add.class, edit.class})
    private String sourceName;

    /**
     * 所属地区
     */
    @NotBlank(message = "所属地区不能为空，请检查addrInfo参数", groups = {add.class, edit.class})
    private String addrInfo;

    /**
     * 模板序号
     */
    @NotNull(message = "模板序号不能为空，请检查templateHost参数", groups = {add.class, edit.class})
    private Integer templateHost;

    /**
     * 1=公开,2=私密
     */
    @NotNull(message = "1=公开,2=私密不能为空，请检查isOpen参数", groups = {add.class, edit.class})
    private Integer isOpen;

    /**
     * is_open=2 有用，查看家谱密码
     */
    @NotBlank(message = "is_open=2 有用，查看家谱密码不能为空，请检查lookPass参数", groups = {add.class, edit.class})
    private String lookPass;

}
